{{#if (eq selectedAction 'rotate')}}
  {{#if key.canRotate}}
    <ConfirmAction
      @buttonClasses="toolbar-link"
      @confirmTitle="Rotate this key?"
      @confirmMessage="After rotation, all key actions will default to using the newest version of the key."
      @confirmButtonText="Rotate"
      @onConfirmAction={{action "doSubmit"}}
      data-test-transit-key-rotate="true"
    >
      Rotate encryption key
    </ConfirmAction>
  {{/if}}
{{else}}
  <MessageError @errors={{errors}} />
  {{#if selectedAction}}
    <div data-test-transit-action={{selectedAction}}>
    {{partial (concat 'components/transit-key-action/' selectedAction)}}
    </div>
   {{/if}}
{{/if}}

